← Back
Editing: index-legacy26.js
!function(){function e(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?t(Object(a),!0).forEach(function(t){r(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,c,l=[],i=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{if(!i&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw a}}return l}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(n,r,a,o){var i=r&&r.prototype instanceof l?r:l,s=Object.create(i.prototype);return u(s,"_invoke",function(n,r,a){var o,l,i,u=0,s=a||[],v=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,l=0,i=e,d.n=n,c}};function f(n,r){for(l=n,i=r,t=0;!v&&u&&!a&&t<s.length;t++){var a,o=s[t],f=d.p,m=o[2];n>3?(a=m===r)&&(i=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=f&&((a=n<2&&f<o[1])?(l=0,d.v=r,d.n=o[1]):f<m&&(a=n<3||o[0]>r||r>m)&&(o[4]=n,o[5]=r,d.n=m,l=0))}if(a||n>1)return c;throw v=!0,r}return function(a,s,m){if(u>1)throw TypeError("Generator is already running");for(v&&1===s&&f(s,m),l=s,i=m;(t=l<2?e:i)||!v;){o||(l?l<3?(l>1&&(d.n=-1),f(l,i)):d.n=i:d.v=i);try{if(u=2,o){if(l||(a="next"),t=o[a]){if(!(t=t.call(o,i)))throw TypeError("iterator result is not an object");if(!t.done)return t;i=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(i=TypeError("The iterator does not provide a '"+a+"' method"),l=1);o=e}else if((t=(v=d.n<0)?i:n.call(r,d))!==c)break}catch(t){o=e,l=1,i=t}finally{u=1}}return{value:t,done:v}}}(n,a,o),!0),s}var c={};function l(){}function s(){}function v(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),f=v.prototype=l.prototype=Object.create(d);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,a,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=v,u(f,"constructor",v),u(v,"constructor",s),s.displayName="GeneratorFunction",u(v,a,"GeneratorFunction"),u(f),u(f,a,"Generator"),u(f,r,function(){return this}),u(f,"toString",function(){return"[object Generator]"}),(i=function(){return{w:o,m:m}})()}function u(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}u=function(e,t,n,r){function o(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},u(e,t,n,r)}function s(e,t,n,r,a,o,c){try{var l=e[o](c),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function c(e){s(o,r,a,c,l,"next",e)}function l(e){s(o,r,a,c,l,"throw",e)}c(void 0)})}}System.register(["./base-lib-legacy.js?v=1765440387","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./useMethods-legacy.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./column-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387"],function(t,r){"use strict";var c,l,u,s,d,f,m,p,g,h,b,y,w,z,x,_,j,k,M,O,V,L,S,H,C,A,P,I,D,E,T,B,N,G,F,U,J,K,R,$,q,Q;return{setters:[function(e){c=e.r,l=e.k,u=e.g,s=e.c,d=e.aE,f=e.w,m=e.p,p=e.n,g=e.a5,h=e.G,b=e.q,y=e.v,w=e.y,z=e.x,x=e.H,_=e.I,j=e.e,k=e.A,M=e.z,O=e.B,V=e.aN,L=e.F,S=e.a$,H=e.J,C=e.K,A=e.ak,P=e.S,I=e.D,D=e.aw,E=e.M,T=e.aj,B=e.b4},function(e){N=e._},function(e){G=e.ah,F=e.aK,U=e.u,J=e._,K=e.R,R=e.v,$=e.e},function(e){q=e.C,Q=e.o},null,null,null],execute:function(){var r=c({containers:{usage:"0",total:"0",size:"-"},images:{usage:"0",total:"0",size:"-"},volumes:{usage:"0",total:"0",size:"-"},networks:{usage:0,total:0},composes:{usage:0,total:0},mirrors:0}),W=c({search:"",rule:"ALL"}),X=[{label:"全部",value:"ALL"},{label:"运行中",value:"running"},{label:"已停止",value:"exited"}],Y=c([]),Z=c(null===localStorage.getItem("hideDockerOverview")||!!Number(localStorage.getItem("hideDockerOverview"))),ee=l({cpu:{percentage:0,load:!0},memory:{percentage:0,userd:0,all:0,load:!0},total:0,p:1,row:50,loading:!1,errmsg:""}),te=null,ne=function(){var e;null===(e=te)||void 0===e||e.close(),te=G({route:"/ws_model",onMessage:re})},re=function(){var e=v(i().m(function e(t,n){var r,a;return i().w(function(e){for(;;)switch(e.n){case 0:try{a=JSON.parse(n.data),0!=Object.keys((null===(r=a.data)||void 0===r?void 0:r.container_list)||{}).length?le(a.data):a.end&&!a.data.container_list&&(ee.errmsg=a.msg,ee.loading=!1)}catch(t){}case 1:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),ae=function(){var e=v(i().m(function e(){var t,n;return i().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,F();case 1:t=e.v,(n=t.data).status&&(r.value=n.data);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),oe=function(){var e=v(i().m(function e(){var t,n,r;return i().w(function(e){for(;;)switch(e.n){case 0:ee.loading=!0,ne(),r={model_index:"btdocker",mod_name:"container",def_name:"get_all_stats",ws_callback:111},null===(t=te)||void 0===t||t.send(r),null===(n=te)||void 0===n||n.send(r);case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),ce=function(e,t){t.value&&(t.value.scrollHeight,Z.value=e,localStorage.setItem("hideDockerOverview",e?"1":"0"))},le=function(e){0!==Object.keys(e.container_list).length&&(Y.value=Object.entries(e.container_list).map(function(e){var t=o(e,2),r=(t[0],t[1]);return"object"===a(r)&&null!==r?n(n({},r),{},{cpu_usage:Number(r.cpu_usage||0),mem_percent:Number(r.mem_percent||0)}):{}}),ee.loading&&(ee.loading=!1))},ie=function(){var e=v(i().m(function e(){return i().w(function(e){for(;;)switch(e.n){case 0:try{ae(),oe()}catch(t){}case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),ue=function(){var e;null===(e=te)||void 0===e||e.close(),te=null,Y.value=[],ee.loading=!1,ee.errmsg="",ee.cpu.percentage=0,ee.cpu.load=!0,ee.memory.percentage=0,ee.memory.userd=0,ee.memory.all=0,ee.memory.load=!0,ee.total=0,ee.p=1,ee.row=50},se=[{color:"#20a53a",percentage:70},{color:"#f7b851",percentage:90},{color:"#ef0808",percentage:100}],ve=u(function(){return 0===Y.value.length&&!ee.loading}),de=u(function(){var t=e(Y.value);if("ALL"!==W.value.rule){var n="running"===W.value.rule;t=t.filter(function(e){return n?"running"===e.status:"running"!==e.status})}if(W.value.search){var r=W.value.search.toLowerCase();t=t.filter(function(e){return e.name.includes(r)||e.image.toLowerCase().includes(r)})}return t}),fe={class:"module-ui"},me={class:"svgtofont-el-arrow-down-bold text-[1.6rem]"},pe={class:"svgtofont-el-arrow-up-bold text-[1.6rem]"},ge={class:"use-menu-list"},he={class:"use-content"},be={class:"use-subtitle"},ye={class:"use-content"},we={class:"use-content"},ze={class:"use-subtitle"},xe={class:"use-content"},_e={class:"use-content"},je={class:"use-subtitle"},ke={class:"use-content"},Me={class:"mt-[12px] module-ui"},Oe={class:"flex justify-between mb-1rem"},Ve={class:"flex items-center"},Le={class:"mr-[1.2rem] w-[10rem]"},Se={class:"w-[26rem] mr-[1.2rem]"},He={class:"p-[1.6rem] relative pl-[6.3rem] border-b border-[#ececec] flex flex-col justify-between"},Ce=["onClick"],Ae=["onClick"],Pe={class:"w-[90%] truncate"},Ie={class:"w-full truncate leading-[1.3] text-[#6b7280]"},De={class:"whitespace-nowrap"},Ee={class:"w-full p-[2rem]"},Te={class:"mb-[1rem]"},Be={class:"flex items-center justify-between mb-[.6rem]"},Ne={class:"flex items-center justify-between mb-[.6rem]"},Ge={class:"text-[1.2rem]"};t("default",$(s({__name:"index",setup:function(t,n){var a=n.expose,o=U().mainHeight,l=d(),i=c(null),u=c(0),s=function(){u.value=o.value-470},v=function(){u.value=o.value-280},G=function(e){l.push(e)};return f(o,function(e){e&&(u.value=Z.value?o.value-280:o.value-470)},{immediate:!0}),m(function(){ie(),p(function(){!function(e){var t=null!==localStorage.getItem("hideDockerOverview")?Z.value:window.innerHeight<=700;ce(t,e)}(i)})}),a({init:ie,destroy:ue}),g(function(){ue()}),function(t,n){var a=T,o=A,c=P,l=I,d=N,f=B,m=D,p=h("bt-loading");return b(),y("div",null,[w("div",fe,[w("div",{class:"text-[1.6rem] flex justify-between items-center cursor-pointer",onClick:n[0]||(n[0]=function(e){return t=!z(Z),void ce(t,i);var t})},[n[10]||(n[10]=w("div",{class:"font-bold text-[1.8rem]"},"资源概览",-1)),w("div",null,[x(w("span",me,null,512),[[_,z(Z)]]),x(w("span",pe,null,512),[[_,!z(Z)]])])]),j(V,{name:"slide-down",mode:"out-in",onAfterLeave:v,onBeforeEnter:s},{default:k(function(){return[x(w("div",{ref_key:"useMenuRef",ref:i,class:"use-menu-box"},[w("div",ge,[w("div",{class:"use-menu-card",onClick:n[1]||(n[1]=function(e){return G("/docker/containers")})},[n[12]||(n[12]=w("div",{class:"card-icon containers-icon"},[w("svg",{t:"1750640949761",class:"icon",viewBox:"0 0 1031 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4657",width:"200",height:"200"},[w("path",{d:"M248.332363 1023.995632a21.839416 21.839416 0 0 1-11.374696-3.093917L11.374696 890.684195A22.749392 22.749392 0 0 1 0 871.02872V610.593681a22.931387 22.931387 0 0 1 11.374696-19.746472L236.593677 460.629689a23.022385 23.022385 0 0 1 22.749392 0l225.855963 130.21752a22.931387 22.931387 0 0 1 11.374696 19.746472v260.435039a22.749392 22.749392 0 0 1-11.374696 19.655475l-225.491973 130.21752a22.294404 22.294404 0 0 1-11.374696 3.093917zM45.498784 857.925071l202.833579 117.022872 202.742581-117.022872V623.697331L248.332363 506.674458 45.498784 623.697331z m428.325552 13.103649zM782.579084 1023.995632a22.294404 22.294404 0 0 1-11.374696-3.093917L545.985408 890.684195a22.749392 22.749392 0 0 1-11.374696-19.655475V610.593681A22.931387 22.931387 0 0 1 545.985408 590.847209l225.491973-130.21752a23.022385 23.022385 0 0 1 22.749392 0l225.582971 130.21752a22.931387 22.931387 0 0 1 11.374696 19.746472v260.435039a22.749392 22.749392 0 0 1-11.374696 19.655475l-225.582971 130.21752a21.839416 21.839416 0 0 1-11.647689 3.093917zM580.109496 857.925071L782.579084 974.947943l202.833579-117.022872V623.697331L782.579084 506.674458 580.109496 623.697331z m428.325552 13.103649zM512.862293 566.368863a21.839416 21.839416 0 0 1-11.374696-3.093917L275.904626 433.057426a22.749392 22.749392 0 0 1-11.374696-19.655475V152.966912a22.931387 22.931387 0 0 1 11.374696-19.746473L501.487597 3.00292a23.022385 23.022385 0 0 1 22.749392 0l225.491973 130.217519a22.931387 22.931387 0 0 1 11.374696 19.746473v260.435039a22.749392 22.749392 0 0 1-11.374696 19.655475L524.236989 563.274946a22.294404 22.294404 0 0 1-11.374696 3.093917zM310.028714 400.389299l202.833579 116.931875L715.604874 400.389299V166.070562L512.862293 49.047689 310.028714 166.070562z m428.325552 13.10365z","p-id":"4658",fill:"#409eff"}),w("path",{d:"M512.862293 297.380052a23.295377 23.295377 0 0 1-11.465694-3.093917l-142.593189-82.443797a22.749392 22.749392 0 0 1 0-39.401947L501.396599 89.996595a23.20438 23.20438 0 0 1 22.84039 0L666.830178 172.895379a22.749392 22.749392 0 0 1 0 39.401947l-142.593189 81.988809a23.20438 23.20438 0 0 1-11.374696 3.093917zM415.67689 192.186864l97.185403 56.145499L609.683705 192.186864 512.862293 136.496352zM248.332363 763.560593a22.385402 22.385402 0 0 1-11.738686-3.093918l-142.593189-81.897811a22.931387 22.931387 0 0 1-11.374696-19.746472 22.749392 22.749392 0 0 1 11.374696-19.655475L236.593677 556.268133a22.749392 22.749392 0 0 1 22.840389 0l142.593189 82.443796a22.749392 22.749392 0 0 1 11.374696 19.655475 22.931387 22.931387 0 0 1-11.374696 19.746472l-142.593189 81.897812a22.294404 22.294404 0 0 1-11.101703 3.548905zM151.14696 658.367404l97.185403 56.1455L345.790758 658.367404l-97.458395-56.145499zM782.579084 763.560593a22.294404 22.294404 0 0 1-11.374696-3.093918l-142.593189-81.897811a22.931387 22.931387 0 0 1-11.374696-19.746472 22.749392 22.749392 0 0 1 11.374696-19.655475l142.593189-82.443796a22.749392 22.749392 0 0 1 22.84039 0L937.27495 638.711929a22.749392 22.749392 0 0 1 11.374696 19.655475 22.931387 22.931387 0 0 1-11.374696 19.746472l-142.593189 81.897812a22.385402 22.385402 0 0 1-12.102677 3.548905zM685.757672 658.367404L782.579084 714.512904l97.185403-56.1455L782.579084 602.221905z","p-id":"4659",fill:"#409eff"})])],-1)),n[13]||(n[13]=w("div",{class:"use-title"},"容器数量",-1)),w("div",he,M(z(r).containers.total),1),w("div",be,[n[11]||(n[11]=O("占用空间",-1)),w("span",null,M(z(r).containers.size),1)])]),w("div",{class:"use-menu-card",onClick:n[2]||(n[2]=function(e){return G("/docker/orchestration")})},[n[14]||(n[14]=w("div",{class:"card-icon composes-icon"},[w("svg",{t:"1750641044372",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5832",width:"200",height:"200"},[w("path",{d:"M232.96 15.36H41.984C18.944 15.36 0 34.304 0 57.344v190.976c0 23.04 18.944 41.984 41.984 41.984h190.976c23.04 0 41.984-18.944 41.984-41.984V57.344c0.512-23.04-18.432-41.984-41.984-41.984z m-1.024 219.136c0 7.168-6.144 12.288-12.8 12.288H56.32c-7.168 0-12.8-6.144-12.8-12.288V71.68c0-7.168 6.144-12.288 12.8-12.288h162.816c7.168 0 12.8 6.144 12.8 12.288v162.816zM232.96 370.688H41.984c-23.04 0-41.984 18.944-41.984 41.984v190.976c0 23.04 18.944 41.984 41.984 41.984h190.976c23.04 0 41.984-18.944 41.984-41.984V412.16c0.512-23.552-18.432-41.472-41.984-41.472z m-1.024 218.624c0 7.168-6.144 12.288-12.8 12.288H56.32c-7.168 0-12.8-6.144-12.8-12.288V425.984c0-7.168 6.144-12.288 12.8-12.288h162.816c7.168 0 12.8 6.144 12.8 12.288v163.328zM232.96 724.992H41.984c-23.04 0-41.984 18.944-41.984 41.984v190.976c0 23.04 18.944 41.984 41.984 41.984h190.976c23.04 0 41.984-18.944 41.984-41.984v-190.976c0.512-23.04-18.432-41.984-41.984-41.984z m-1.024 219.136c0 7.168-6.144 12.288-12.8 12.288H56.32c-7.168 0-12.8-6.144-12.8-12.288v-162.816c0-7.168 6.144-12.288 12.8-12.288h162.816c7.168 0 12.8 6.144 12.8 12.288v162.816zM982.016 15.36H397.312c-23.04 0-41.984 18.944-41.984 41.984v190.976c0 23.04 18.944 41.984 41.984 41.984h584.704c23.04 0 41.984-18.944 41.984-41.984V57.344c-0.512-23.04-18.944-41.984-41.984-41.984z m-2.048 219.136c0 7.168-6.144 12.288-12.8 12.288H411.136c-7.168 0-12.8-6.144-12.8-12.288V71.68c0-7.168 6.144-12.288 12.8-12.288H967.68c7.168 0 12.8 6.144 12.8 12.288v162.816h-0.512zM982.016 370.688H397.312c-23.04 0-41.984 18.944-41.984 41.984v190.976c0 23.04 18.944 41.984 41.984 41.984h584.704c23.04 0 41.984-18.944 41.984-41.984V412.16c-0.512-23.552-18.944-41.472-41.984-41.472z m-2.048 218.624c0 7.168-6.144 12.288-12.8 12.288H411.136c-7.168 0-12.8-6.144-12.8-12.288V425.984c0-7.168 6.144-12.288 12.8-12.288H967.68c7.168 0 12.8 6.144 12.8 12.288v163.328h-0.512zM982.016 724.992H397.312c-23.04 0-41.984 18.944-41.984 41.984v190.976c0 23.04 18.944 41.984 41.984 41.984h584.704c23.04 0 41.984-18.944 41.984-41.984v-190.976c-0.512-23.04-18.944-41.984-41.984-41.984z m-2.048 219.136c0 7.168-6.144 12.288-12.8 12.288H411.136c-7.168 0-12.8-6.144-12.8-12.288v-162.816c0-7.168 6.144-12.288 12.8-12.288H967.68c7.168 0 12.8 6.144 12.8 12.288v162.816h-0.512z",fill:"#20a53a","p-id":"5833"})])],-1)),n[15]||(n[15]=w("div",{class:"use-title"},"编排数量",-1)),w("div",ye,M(z(r).composes.total),1),n[16]||(n[16]=w("div",{class:"use-subtitle"},"Docker Compose 项目",-1))]),w("div",{class:"use-menu-card",onClick:n[3]||(n[3]=function(e){return G("/docker/images")})},[n[18]||(n[18]=w("div",{class:"card-icon images-icon"},[w("svg",{t:"1750641093279",class:"icon",viewBox:"0 0 1117 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6884",width:"200",height:"200"},[w("path",{d:"M442.898361 116.049051l2.23404 0.74468L74.840328 1.368349A61.901515 61.901515 0 0 0 0 61.966675v883.283427a61.9946 61.9946 0 0 0 74.840328 60.598326l379.507486-118.124847a77.074368 77.074368 0 0 0 41.981329-68.510549V189.58619a77.539793 77.539793 0 0 0-53.430782-73.537139zM403.244157 792.218386L93.084986 874.412428V132.618179l310.159171 82.380212v577.12691zM1054.466716 0.065159a77.260538 77.260538 0 0 0-12.845728 1.30319L675.796995 115.490542l1.30319-0.18617a77.446708 77.446708 0 0 0-56.968012 74.467988v629.161417c0 29.88028 17.034552 55.850991 41.981329 68.696719l379.228231 118.217932a61.9946 61.9946 0 0 0 75.026498-60.691411V61.966675a61.529175 61.529175 0 0 0-61.901515-61.808431z",fill:"#20a53a",opacity:".801","p-id":"6885"})])],-1)),n[19]||(n[19]=w("div",{class:"use-title"},"镜像数量",-1)),w("div",we,M(z(r).images.total),1),w("div",ze,[n[17]||(n[17]=O("占用空间",-1)),w("span",null,M(z(r).images.size),1)])]),w("div",{class:"use-menu-card",onClick:n[4]||(n[4]=function(e){return G("/docker/network")})},[n[20]||(n[20]=w("div",{class:"card-icon networks-icon"},[w("svg",{t:"1750641121238",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8080",width:"200",height:"200"},[w("path",{d:"M372.305 745.773C403.023 787.057 441.673 822.09 486 848.615v-127.74c-39.818 2.647-78.01 11.24-113.695 24.898z m-51.609 24.217a392.912 392.912 0 0 0-60.194 41.64h-1.271c56.974 48.113 127.858 80.27 205.76 89.58-57.186-32.69-106.475-77.62-144.295-131.22zM295.985 540c4.004 56.745 20.087 110.155 45.691 157.675 44.903-18.522 93.476-29.956 144.324-32.91V540H295.985z m-56.124 0H120.985c6.296 89.215 42.447 170.188 98.523 232.989a449.204 449.204 0 0 1 71.8-50.725C262.051 667.323 243.903 605.57 239.86 540z m445.864 158.764c25.95-47.793 42.251-101.585 46.29-158.764H541v124.899c51.032 3.215 99.745 14.975 144.725 33.865z m50.207 24.904a449.248 449.248 0 0 1 68.903 48.937c55.88-62.746 91.897-143.571 98.18-232.605H788.138c-4.08 66.13-22.507 128.377-52.206 183.668zM541 849.194c44.394-26.387 83.134-61.292 113.965-102.46-35.735-13.96-74.02-22.825-113.965-25.706v128.166z m23.097 51.374c75.9-10.079 144.941-41.875 200.672-88.937h-0.484a392.964 392.964 0 0 0-57.91-40.348c-37.456 52.683-86.02 96.917-142.278 129.285z m-222.315-574.44c-25.666 47.57-41.787 101.05-45.797 157.872H486V358.884c-50.804-2.916-99.34-14.297-144.218-32.755z m-50.397-24.538a449.186 449.186 0 0 1-71.828-50.634C163.453 313.765 127.283 394.76 120.985 484H239.86c4.047-65.628 22.223-127.432 51.524-182.41zM486 175.385c-44.257 26.483-82.856 61.448-113.551 102.648 35.648 13.593 73.79 22.132 113.551 24.744V175.385z m-21.01-52.595c-77.702 9.286-148.422 41.303-205.321 89.21h0.518a392.903 392.903 0 0 0 60.606 41.872c37.808-53.54 87.06-98.42 144.198-131.082zM654.7 276.878c-30.788-41.016-69.433-75.796-113.7-102.108v127.81c39.849-2.906 78.045-11.77 113.7-25.702z m51.415-24.562A392.966 392.966 0 0 0 763.97 212h0.361c-55.635-46.843-124.483-78.493-200.153-88.558 56.093 32.29 104.535 76.377 141.937 128.874zM732.017 484c-4.045-57.343-20.423-111.282-46.498-159.179C640.6 343.7 591.959 355.465 541 358.712V484h191.017z m56.123 0h114.875c-6.295-89.205-42.439-170.17-98.504-232.968a449.25 449.25 0 0 1-68.79 48.87c29.828 55.4 48.333 117.798 52.42 184.098zM512 960C264.576 960 64 759.424 64 512S264.576 64 512 64s448 200.576 448 448-200.576 448-448 448z",fill:"#20a53a","p-id":"8081"})])],-1)),n[21]||(n[21]=w("div",{class:"use-title"},"网络数量",-1)),w("div",xe,M(z(r).networks.total),1),n[22]||(n[22]=w("div",{class:"use-subtitle"},"已创建的网络",-1))]),w("div",{class:"use-menu-card",onClick:n[5]||(n[5]=function(e){return G("/docker/storage")})},[n[24]||(n[24]=w("div",{class:"card-icon volumes-icon"},[w("svg",{t:"1750641138362",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9125",width:"200",height:"200"},[w("path",{d:"M925.27 269.25V758c0 112.46-185.35 203.64-414 203.64s-414-91.18-414-203.64V269.25c0-112.46 185.34-203.63 414-203.63s414 91.17 414 203.63zM842.47 758V269.25c0-43.07-125.73-122.18-331.18-122.18s-331.18 79.11-331.18 122.18V758c0 43.07 125.73 122.18 331.18 122.18S842.47 801.05 842.47 758z",fill:"#20a53a","p-id":"9126"}),w("path",{d:"M925.27 269.25c0 112.47-185.35 203.64-414 203.64s-414-91.17-414-203.64 185.34-203.63 414-203.63 414 91.17 414 203.63z m-82.8 0c0-43.07-125.73-122.18-331.18-122.18s-331.18 79.11-331.18 122.18 125.73 122.18 331.18 122.18 331.18-79.1 331.18-122.18z",fill:"#20a53a","p-id":"9127"}),w("path",{d:"M511.29 554.34c-205.45 0-331.18-79.1-331.18-122.18H97.32c0 112.47 185.34 203.64 414 203.64s414-91.17 414-203.64h-82.8c-0.05 43.08-125.78 122.18-331.23 122.18z",fill:"#20a53a","p-id":"9128"}),w("path",{d:"M511.29 717.25c-205.45 0-331.18-79.11-331.18-122.18H97.32c0 112.47 185.34 203.64 414 203.64s414-91.17 414-203.64h-82.8c-0.05 43.07-125.78 122.18-331.23 122.18z",fill:"#20a53a","p-id":"9129"})])],-1)),n[25]||(n[25]=w("div",{class:"use-title"},"存储卷数量",-1)),w("div",_e,M(z(r).volumes.total),1),w("div",je,[n[23]||(n[23]=O("占用空间",-1)),w("span",null,M(z(r).volumes.size),1)])]),w("div",{class:"use-menu-card",onClick:n[6]||(n[6]=function(e){return G("/docker/warehouse")})},[n[26]||(n[26]=w("div",{class:"card-icon mirrors-icon"},[w("svg",{t:"1750641157017",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10179",width:"200",height:"200"},[w("path",{d:"M528.832 106.432l352 217.92a32 32 0 0 1 15.168 27.2V896a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V351.552a32 32 0 0 1 15.168-27.2l352-217.92a32 32 0 0 1 33.664 0zM512 171.264l-320 198.08V864h640V369.344l-320-198.08z m-253.44 212.832l3.712 0.512 213.344 42.688a32 32 0 0 1 25.504 27.616l0.224 3.744v298.688a32 32 0 0 1-22.08 30.4l-3.648 0.96-213.344 42.688a32 32 0 0 1-38.08-27.68L224 800V416a32 32 0 0 1 34.56-31.904zM800 416v384a32 32 0 0 1-38.272 31.36l-213.344-42.656a32 32 0 0 1-25.728-31.36v-298.688a32 32 0 0 1 25.728-31.36l213.344-42.688A32 32 0 0 1 800 416zM287.968 455.008v305.952l149.344-29.856v-246.24l-149.344-29.856z m448.032 0l-149.344 29.856v246.24L736 760.96v-305.952z","p-id":"10180",fill:"#20a53a"})])],-1)),n[27]||(n[27]=w("div",{class:"use-title"},"镜像仓库数量",-1)),w("div",ke,M(z(r).mirrors),1),n[28]||(n[28]=w("div",{class:"use-subtitle"},"已配置的仓库",-1))])])],512),[[_,!z(Z)]])]}),_:1})]),w("div",Me,[w("div",null,[w("div",Oe,[n[30]||(n[30]=w("div",{class:"font-bold text-[1.8rem]"},"容器列表",-1)),w("div",Ve,[w("div",Le,[j(o,{modelValue:z(W).rule,"onUpdate:modelValue":n[7]||(n[7]=function(e){return z(W).rule=e}),onChange:n[8]||(n[8]=function(e){return z(W).rule=e})},{default:k(function(){return[(b(!0),y(L,null,S(z(X),function(e){return b(),E(a,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])}),128))]}),_:1},8,["modelValue"])]),w("div",Se,[j(c,{modelValue:z(W).search,"onUpdate:modelValue":n[9]||(n[9]=function(e){return z(W).search=e}),placeholder:"搜索容器名称或镜像名"},{prefix:k(function(){return e(n[29]||(n[29]=[w("i",{class:"svgtofont-el-search"},null,-1)]))}),_:1},8,["modelValue"])]),j(l,{onClick:z(oe)},{default:k(function(){return[j(z(J),{icon:"el-refresh"})]}),_:1},8,["onClick"])])]),x((b(),y("div",{class:H(z(ve)?"flex pt-[1.6rem] justify-center items-center":"con-grid"),ref:"scrollContainer",style:C("height:".concat(z(u),"px;"))},[(b(!0),y(L,null,S(z(de),function(e){var t,r,a;return b(),y("div",{key:e.id,class:"w-full border border-[#eee] hover:shadow-[0_0_6px_rgba(0,0,0,.125)] rounded-[.6rem] text-[1.2rem] text-[#999]"},[w("div",He,[w("span",{class:"monitor svgtofont-el-monitor",onClick:function(t){return z(q)(e)}},null,8,Ce),w("div",{class:"text-[1.6rem] leading-[1.5] mb-[.7rem] w-full truncate cursor-pointer font-bold text-[#444] flex items-center justify-between",onClick:function(t){return z(Q)(e)}},[w("div",Pe,[j(d,{text:e.name},null,8,["text"])]),w("span",{class:H(["w-[.8rem] h-[.8rem] rounded-full inline-block","running"===e.status?"bg-[#20a53a]":"bg-[#ef0808]"])},null,2)],8,Ae),w("div",Ie,[j(d,{text:e.image},null,8,["text"])]),w("div",De,"创建时间:"+M(z(K)(e.created_time)),1)]),w("div",Ee,[w("div",Te,[w("div",Be,[n[31]||(n[31]=w("div",{class:"text-[1.2rem] text-[#666]"},"CPU使用率",-1)),w("div",{class:H(["text-[1.2rem]",{"text-[#20a53a]":e.cpu_usage<70,"text-[#f7b851]":e.cpu_usage>=70&&e.cpu_usage<90,"text-[#ef0808]":e.cpu_usage>=90}])},M("".concat(null===(t=Number(e.cpu_usage))||void 0===t?void 0:t.toFixed(1),"%")),3)]),j(f,{percentage:e.cpu_usage,color:z(se),"stroke-width":6,"show-text":!1},null,8,["percentage","color"])]),w("div",null,[w("div",Ne,[n[32]||(n[32]=w("div",{class:"text-[1.2rem] text-[#666]"},"内存使用情况",-1)),w("div",Ge,M("".concat(z(R)(null===(r=e.memory_usage)||void 0===r?void 0:r.mem_usage),"/").concat(z(R)(null===(a=e.memory_usage)||void 0===a?void 0:a.mem_limit))),1)]),j(f,{percentage:e.mem_percent,color:z(se),"stroke-width":6,"show-text":!1},null,8,["percentage","color"])])])])}),128)),x(j(m,{description:z(ee).errmsg},null,8,["description"]),[[_,z(ve)]])],6)),[[p,z(ee).loading],[p,"正在加载运行中的容器列表,请稍候...","title"]])])])])}}}),[["__scopeId","data-v-83d71081"]]))}}})}();
Save File
Cancel